package com.aaa.service.impl;

import com.aaa.dao.InvestMapper;
import com.aaa.pojo.Invest;
import com.aaa.service.InvestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InvestServiceImpl implements InvestService {
    @Autowired
    private InvestMapper mapper;
    @Override
    public List<Invest> selectInvest() {
        return mapper.selectInvest();
    }

    @Override
    public boolean insertInvest(Invest invest) {
        return mapper.insertInvest(invest);
    }

    @Override
    public Invest selectDate(String date) {
        return mapper.selectDate(date);
    }
}
